package com.example.zk2_lx;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import com.alibaba.android.arouter.facade.annotation.Autowired;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;

@Route(path = "/app/ChatActivity")
public class ChatActivity extends AppCompatActivity {
    @Autowired
    Bundle bundle;
    private MyEaseFragmemt myEaseFragmemt;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_chat);
        ARouter.getInstance().inject(this);
        myEaseFragmemt = new MyEaseFragmemt();
        if(bundle!=null){
            myEaseFragmemt.setArguments(bundle);
        }else{
            myEaseFragmemt.setArguments(getIntent().getBundleExtra("bundle"));
        }

        getSupportFragmentManager().beginTransaction().add(R.id.container, myEaseFragmemt).commit();


    }
}